package cn.just.service;

import cn.just.dao.LinkDao;
import cn.just.entity.Link;

import java.sql.SQLException;
import java.util.List;

/**
 * @author wujiaming
 */
public class LinkService {

    public List<Link> findAll(){

        LinkDao linkDao = new LinkDao();
        try {
            return linkDao.findAll();
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
        return null;
    }
}
